From: Jasper St. Pierre Date: Mon, 19 Dec 2011 04:34:00 +0000 (-0500) Subject: st-theme-node: Fix memory leak X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7238 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f2cbddc19654f7910be0dc2e504af3f0d871ff8f;p=gnome-shell.git st-theme-node: Fix memory leak We ref the icon_colors in st_theme_node_get_icon_colors, but never unref it. --- diff --git a/src/st/st-theme-node.c b/src/st/st-theme-node.c index 79ec93133..cc51498c6 100644 --- a/src/st/st-theme-node.c +++ b/src/st/st-theme-node.c @@ -90,6 +90,12 @@ st_theme_node_dispose (GObject *gobject) node->border_image = NULL; } + if (node->icon_colors) + { + st_icon_colors_unref (node->icon_colors); + node->icon_colors = NULL; + } + G_OBJECT_CLASS (st_theme_node_parent_class)->dispose (gobject); }